package com.campus.exception;

import com.campus.response.ResultCode;
import lombok.Data;
import lombok.EqualsAndHashCode;

@EqualsAndHashCode(callSuper = true)
@Data
public class BusinessException extends RuntimeException {
    private Integer code;

    public BusinessException(ResultCode resultCode){
        super(resultCode.getMessage());

        this.code=resultCode.getCode();

    }


}
